package com.mifengs.mall.netWork.api;

import com.mifengs.mall.Constant;
import com.mifengs.mall.entity.RedPacket;
import com.mifengs.mall.entity.RedPacketBean;
import com.mifengs.mall.entity.ResponseInfo;

import java.util.List;
import java.util.Map;

import retrofit2.Response;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by lihaoqi on 2018/1/29.
 */

public interface RedPacketApi {

    @FormUrlEncoded
    @POST(Constant.RED_PACKET)
    Observable<ResponseInfo<RedPacketBean>> getData(
            @FieldMap Map<String, Object> map
    );


    @FormUrlEncoded
    @POST(Constant.RED_DETAIL)
    Observable<ResponseInfo<RedPacket>> getRedDetail(
            @FieldMap Map<String, Object> map
    );


    @FormUrlEncoded
    @POST(Constant.RED_REV)
    Observable<ResponseInfo> revRed(
            @FieldMap Map<String, Object> map
    );

}
